package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 秒杀记录对象 seckill_record
 * 
 * @author kinglu
 * @date 2021-11-30
 */
public class SeckillRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    private Long recordId;

    /** 秒杀编号 */
    @Excel(name = "秒杀编号")
    private Long seckillId;

    /** 秒杀用户 */
    @Excel(name = "秒杀用户")
    private Long userId;

    /** 秒杀时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @Excel(name = "秒杀时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date seckillTime;

    /** 付款状态 */
    @Excel(name = "付款状态")
    private String payType;

    /** 秒杀状态 */
    @Excel(name = "秒杀状态")
    private String seckillType;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setSeckillId(Long seckillId) 
    {
        this.seckillId = seckillId;
    }

    public Long getSeckillId() 
    {
        return seckillId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSeckillTime(Date seckillTime) 
    {
        this.seckillTime = seckillTime;
    }

    public Date getSeckillTime() 
    {
        return seckillTime;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setSeckillType(String seckillType) 
    {
        this.seckillType = seckillType;
    }

    public String getSeckillType() 
    {
        return seckillType;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("seckillId", getSeckillId())
            .append("userId", getUserId())
            .append("seckillTime", getSeckillTime())
            .append("payType", getPayType())
            .append("seckillType", getSeckillType())
            .append("memo", getMemo())
            .toString();
    }
}
